/**
 * Created by Administrator on 2017/3/13 0013.
 */
Page6={
    Create:function(){
        var page={};
        var whole=new PIXI.DisplayObjectContainer();

        var bg = PSP("page6_7");
        var head1=PSP("page6_1");
        var head2=PSP("page6_2");
        var head3=PSP("page6_3");
        var word1=PSP("page6_4");
        var word2=PSP("page6_5");
        var word3=PSP("page6_6");




        whole.addChild(bg);
        whole.addChild(head1);
        whole.addChild(head2);
        whole.addChild(head3);
        whole.addChild(word1);
        whole.addChild(word2);
        whole.addChild(word3);

        bg.x=0;bg.y=0;
        head1.x=345;head1.y=282-120;
        head2.x=284;head2.y=451-120;
        head3.x=342;head3.y=494-120;
        word1.x=297;word1.y=778-120;
        word2.x=143;word2.y=826-120;
        word3.x=388;word3.y=826-120;

        head1.alpha=0;
        head2.alpha=0;
        head3.alpha=0;
        word1.alpha=0;
        word2.alpha=0;
        word3.alpha=0;

        head1.y=282-30-120;
        head3.y=494+30-120;
        head2.x=284-20;

        word1.y=778-30-120;
        word2.x=143-20;
        word3.x=388+20;

        page.In=function(){

            TweenMax.to(head1,0.7,{delay:0.0,alpha:1,y:282-120,ease:Cubic.easeOut});
            TweenMax.to(head3,0.7,{delay:0.,alpha:1,y:494-120,ease:Cubic.easeOut});
            TweenMax.to(head2,0.7,{delay:0.4,alpha:1,x:284,ease:Cubic.easeOut});

            TweenMax.to(word2,0.7,{delay:0.8,alpha:1,x:143,ease:Cubic.easeOut});
            TweenMax.to(word3,0.7,{delay:0.8,alpha:1,x:388,ease:Cubic.easeOut});
            TweenMax.to(word1,0.7,{delay:0.6,alpha:1,y:778-120,ease:Cubic.easeOut});

        }
        page.Out=function(){

        }

        page.ReturnWhole=function(){
            return whole;
        };

        return page;
    }
}
